define([
    "app"
],function (app) {
   app.service("indexDataService",["$http",function ($http) {
       return {
           getStatistic:function () {
               return $http({
                   url:requestRootUrl + "api/backend-index/get-statistic",
                   method:"GET"
               });
           },
           createNewApplicationRound:function (data) {
               return $http({
                   url:requestRootUrl + "api/backend-index/create-new-application-round",
                   method:"POST",
                   data:data
               })
           },
           closeCurrentApplicationRound:function (data) {
               return $http({
                   url:requestRootUrl + "api/backend-index/close-current-application-round",
                   method:"POST",
                   data:data
               })
           }
       }
   }]);
});